//
//  IndexBuffer.hpp
//  LearnOpenGL
//
//  Created by Mr.Optimist on 2022/2/9.
//

#pragma once
#include <stdio.h>

class IndexBuffer{
private:
    unsigned int m_RendererID;
    unsigned int m_Count;
public:
    IndexBuffer(const unsigned int* data, unsigned int count);//number
    ~IndexBuffer();
    
    void Bind() const;
    void UnBind() const;
    
    inline unsigned int GetCount() const {return m_Count; }
};
